#!/usr/bin/awk -f
#将演员合作数据转为图
#输入：actor1 actor2 ... actorN
#输出：actor1 actor2 <br/>actor1 actor3 <br/>...

BEGIN {FS=" " }
{	if (NF > 2)	
		for (i = 1; i <= NF; i ++) 
			for (j = i + 1; j <= NF; j ++) 
				print $i " " $j
}